package de.Ox539.nagroid;

import junit.framework.TestCase;

public class SuppressHelperTest extends TestCase {
	public void testShouldSuppress() {
		SuppressHelper helper = new SuppressHelper();
		
		assertFalse(helper.shouldSuppress(true, false, 0));
		assertTrue(helper.shouldSuppress(true, false, 1));
		
		helper.reset();
		
		assertTrue(helper.shouldSuppress(true, false, 2));
		assertTrue(helper.shouldSuppress(false, false, 2));
		assertFalse(helper.shouldSuppress(false, false, 2));
		
		helper.reset();
		
		assertFalse(helper.shouldSuppress(false, false, 0));
		assertFalse(helper.shouldSuppress(false, true, 0));
		assertFalse(helper.shouldSuppress(true, false, 0));		
		assertFalse(helper.shouldSuppress(true, true, 0));
		
		helper.reset();
		
		assertFalse(helper.shouldSuppress(false, false, 1));
		assertFalse(helper.shouldSuppress(false, false, 1));
		
		helper.reset();
		
		assertFalse(helper.shouldSuppress(false, true, 1));
		assertFalse(helper.shouldSuppress(false, true, 1));
		
		helper.reset();
		
		assertFalse(helper.shouldSuppress(false, false, 0));
		assertFalse(helper.shouldSuppress(false, true, 0));
		assertTrue(helper.shouldSuppress(true, false, 1));		
		assertFalse(helper.shouldSuppress(false, true, 1));
	}
}
